<template>
    <div>
        我是子页面
        <button @click="clickAbout">
            返回首页
        </button>

        <a href="https://vuejs.org/" target="_blank">
            <img src="../assets/bg.jpg" class="logo vue" alt="Vue logo" style="width: 200px; height: ;"/>
        </a>
    </div>
</template>

<script setup>

import { useRouter } from 'vue-router'

const router =  useRouter()

const clickAbout = () => {
    router.push({name: 'index'})
}
</script>

<style lang="scss" scoped>

</style>